home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000375_nospam@killspam.org_Wed Sep 1 09:30:35 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!9477d3c5!not-for-mail
From: <nospam@killspam.org>
Newsgroups: comp.protocols.kermit.misc
References: <689dd88f.0408311345.474a3235@posting.google.com>
Subject: Re: Checking for
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <apaZc.7515$JT3.4654@newsread3.news.atl.earthlink.net>
Date: Wed, 01 Sep 2004 02:24:06 GMT
NNTP-Posting-Host: 24.148.161.18
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread3.news.atl.earthlink.net 1094005446 24.148.161.18 (Tue, 31 Aug 2004 19:24:06 PDT)
NNTP-Posting-Date: Tue, 31 Aug 2004 19:24:06 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15140
"Shruti" <gandhishruti@gmail.com> wrote
> i want to check if the directory exists. If it does not then I
> want to exit.
*******************************************************
you don't mention anything about versions, this quick test
script was tested on 2.1.3 of k95, connecting to some 8.0
unix build. If fail works just fine.
my script:
***************************************
rdir /home
if fail stop 1 no home
rcd /home
rdir /home/xxx
if fail stop 2 no xxx
rcd /home/xxx
*******************************************
My Results::: ( note the no xxx line at the bottom as the if fail returns
true.)
[C:\Documents and Settings\boz\] K-95> take c:/bat/rpwd.ksc
Press the X or E key to cancel.
drwx------ 4096 2004-08-31 09:07:19 /home/apeasy_wpa
drwx------ 4096 2004-01-19 09:41:26 /home/boz
drw------- 4096 2004-08-04 08:01:33 /home/data
-rw------- 12 2004-08-14 11:42:13 /home/diskspace
drwx------ 4096 2004-08-31 08:11:17 /home/nemclab
drwx------ 4096 2004-04-23 08:58:55 /home/newark
drwx------ 4096 2004-08-31 09:08:15 /home/nh_wpa
drwx------ 4096 2003-03-31 12:34:53 /home/nhmrc
drwx------ 4096 2004-08-31 09:09:34 /home/stp
drwx------ 4096 2004-08-14 11:41:51 /home/test
/home
Press the X or E key to cancel.
?No files match
no xxx
****************************************************************